fix load_all()

I think there is a mistake line 37 of compile-dll.r: "inst" must be inst.
Otherwise file.copy quietly fails.
I also suggest to look at the returned boolean and throw an error.
add optional argument lib with default value = dirname(pkg$path) (unchanged from previous behavior)