Fixed compile failure on OSX Yosemite