Fixed OSX build failure.