Wrote functions for loading dynamic link libraries.