Fix sounds under windows and osx (fix #356)