Otherwise the library will be unloaded and function pointers become invalid. This reverts commit bc2bc030.