Add ifdef for Mac