Fix compile for Mac