remove c++11 specific features from font.cpp and surface.cpp