Improve *BSD port

- Use setpgid instead of setpgrp as setpgrp is deprecated.
- Add *BSD support.
- Mute some -Wuninitialized warnings.
- Mute some clang warnings.
- Add a simple script for printing out the overall run summary.

Sponsored-by: EMC / Isilon Storage Division