fix gcc warnings