add mechanism to add a C library dependency from a JS library, in emcc