moved LDFLAGS into CFLAGS