Emscripten linux

This change make it easier to build for emscripten on linux outside of travis.