AudioInput on Mac OSX

This adds code so that the AudioInput can be used on Mac OSX. There is a short description of all the changes I made in #8.