Added version checking for GCC and Clang