Build fix on mac