Better attempt at handling dlclose() on Win32 for static builds