fix g++ 4.4 compile