Prepend LD.Flags before LDFLAGS to avoid overriding necessary paths.