Add formula for emscripten

Unfortunately, emscripten doesn't have a 'make install' target, so do some manual magic to make it behave nicely in homebrew.