modify loadLibrary to load the correct library based on new native plugin