Fixed multi-thread access to local variables (mainly fd for /dev/dsp). God rid of obsolete macro. Fixed some slight init issues.