Build fix for Mac OS