some fixes for windows and audio playback