Make mergeReport more fun and fix some portability issues.