build fixes for map_server