Initialize CFLAGS and LDFLAGS properly for test