Fix build on Ubuntu by forcibly cleansing CFLAGS before running the build

The code comments should be self-explanatory.