fix compiler error in OS X Yosemite