fix for g++ 4.7