gcc 4.4 compile fix