fix DllMain to use HINSTANCE instead of HANDLE. Probably caused by mingw...

... windows header changes