Build fix for OS X