fix #6 switch to C++11