rewrite C++11 check to look for basic classes
test with both gcc and clang