Added deps to CMake for emscripten
Fixed warnings when compiling with em++