compile with -std=c++0x to support older C++11 compilers