Fix compilation for VS