build: set default CC/CXX flags before initializing compilers
build: check for const/inline/typeof