Re-add target_link_libraries for the time being.

But not if we are building for emscripten.