Check for gcc > 4.7 (c++11 or c++03 build).