fix compilation for Windows

Can it be removed everywhere? Then there are quite a few left.