add WIN32 build compatibility
add win32 compatibility to dnc