Added windows DLL compatibility