Add macros to check C/C++ compiler flag availability and use them