Fix build for mac