move flags to CPPFLAGS
c++11 changes