Fix typo in build script to use LDFLAGS

just in case someone actually passes them as environment, might as well work :)