added ifdefs for JUCE_MAC