Fix under OS X Yosemite

Because of a bug[1], ZooKeeper will not compile under OS X Yosemite, though there is a commited fix to resolve this. The necessary patches are now applied to the source before it is compiled.
Merge pull request #3 from obeattie/master

Fix under OS X Yosemite