Handle -Wunguarded-availability warnings

When building in Xcode with -Wunguarded-availability, there are a lot of warnings in JUCE about unguarded calls. Would be great to have the availability guards added so we can turn on this warning without getting too much noise.