Fix typo in build script to use LDFLAGS