added c++11 compiler flag