Fix compilation on microsoft compiler