Added compiler flags for c++11, fixed warnings in benchmarks.cpp