move c++11 to CXXFLAGS, add -Wnarrowing