Added emscripten (emcc) support to build system and some build fixes