scsynth coreaudio fixes

Fixes for issues #1117 and #636.