ported to MaxOS X

Signed-off-by: James Paton <paton@cs.wisc.edu>