Fix compilation for WIN32 case