Fix sound for *BSD and Mac OS X