fixed for if HAVE_DIRENT_H is not defined
adding build scripts for Emscripten, modified CMake and csound.c for when building with Emscripten as it does not support pthread