Fix #4972

We still need the else clause for gcc+windows.