compilation fix when c++2011 is enabled