Detect c++11 support by compiler

Support in makefile.linux are little hackish.