[emscripten] Do not link to system libraries

This is not meaningful when compiling to javascript, and causes warning
at linking stage.
Merge pull request #2085 from severin-lemaignan:emscripten