Limit the mac workaround to the Mac OS X platform