Fix gr audio osx 10 5

Small tweaks for OSX 10.5 and earlier audio API usage, and to make older GCC compilers happy. I've tested these on OSX 10.8 and they seem to work just fine. These are OSX only changes.