BUG: Make sure to use the Win32 interface (HINSTANCE) for handling shared lib on cygwin and mingw system