Set -std=c++0x in CMakeLists.txt