fixed compilation error in gcc 4.6