Initial implementation of loadLibrary/unloadLibrary