port to gcc 4.4