Osx fixes

on osx, it expects the shared library to have the extension of `.dylib` and aplay can be replaced with sox if installed