gcc 4.7 fix for unfound method