compilation fix for Windows