Add -std=c++0x" to the compilation options in case compiler is clang