fix can't compile on mac OSX 10.9.3

fix can't compile on mac OSX 10.9.3, add set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libstdc++ -Wno-error=c++11-narrowing") in CMakeLists.txt