make sure a predefined CFLAGS variable does not get in the way (fix for #4038)