Allow runtime specification of native library

Previously, the native library was fixed at compiletime. This patch
allows you to modify the native library used at runtime by calling
&sub.libname = 'libfoo' (only effective before first use).