use mg_win32.h to redefine mkdir, mutexes, etc. for win32
compile ok WIN=1
fix localtime_r (WIN=1)
[WIN32] fix \r issues when extracting and writing files
add logs and gettid
redesign mutex read/write pattern for Windows
test program
test
Merge branch 'win32-support'