added C++11 compiler flags