Fixed compilaton issues in the map-reduce module.