update configure such that it works with non-emscripten env.