make library_sink.js handle optimization and ASM_JS=1 better
cleanup emscripten Makefile