fix gcc complaints