Fix compilation for Windows