Fix segfualts in unison on Yosemite.

Issue and fix is described here:
http://caml.inria.fr/mantis/view.php?id=6621