Build fix for OSX Mavericks