Separate LDFLAGS and CFLAGS to remove warning.