apply c++11 for whole project
fix build order on linux