Fix under OS X Yosemite

Because of a [bug](https://issues.apache.org/jira/browse/ZOOKEEPER-2049), ZooKeeper will not compile under OS X Yosemite, though there is a committed fix to resolve this. The necessary patches are now applied to the source before it is compiled.

:bug: