Moved loadLibrary code into core as r5rsEnv