Fix build error on OSX Yosemite