WIN32 compatibility
Fix Linux compatibility