Fix build on Yosemite (ZOOKEEPER-2049)