Mac OS port and audio refactoring

- Mac OS build settings.
- Audio Input/Output Proxy with ring buffer. Now audio is almost real time.