fixed iOS 6 deprecated AVAudioSession warnings

Some small updates to remove deprecation warnings on iOS 6+. This should be backward compatible to previous iOS SDKs.