Fix Mac building