fix gcc 4.4 internal compiler error