TOOLS: Fix compilation on Windows