add c++11 flags to compile