fixed compilation in gcc