Fixed Mapgen guard and re-arranged build-depends.