Fix windows build

This version fixes the windows build. Attention: breaks Unix build.