Fixes for emscripten SDK 1.21

* error out instead of warning on empty symbols
* switch from linking -lfoo to explicitly listing the library
* switch from linking the static libraries to linking the shared libs

For some reason emscripten has stopped liking linking to the static
libraries... but of course it links shared libraries statically anyway.
Ah, fun.