when more than one instance uses a shared library, use the already open copy and do not try to open the dll again