compilation fixes for tilemap on native targets