fixed build for Emscripten (added #ifndef __EMSCRIPTEN__ around pthread code, added check for strlcat to CMake)