Fix build for Mac