Fix some warnings and add a specific plugins.cfg for emscripten