Makes some of the mac specific stuff load conditionally