fixed compilation probs with SGI cc