g++ 4.4 compatibility fix