Fixed copmilation warnings in the map-reduce code.