Adds a virtual method for loading native libraries.