removed need to compile with -std=C++11