Finally compiles on Win32. Thanks to nuwen.net MinGW distro