gcc 4.2.1 compilation error fix