build: Add LDFLAGS and tweak CFLAGS for x86_64 a little bit.