Build fix for OSX