Update `.so` generation scripts and make JS and NSPR as packages