Fixes for building with Emscripten

Enable disabling of libtool on platforms where it does not work (e.g. LLVM).
Build libraries normally then.