added c++11/c++0x compiler flag detection for cmake