Revert "Fixed compilation on Windows"

This reverts commit ba07b24bf4459dccf5f2ff3ec58233c63071aae9.
Fixed compilation on Windows

Without modifying working code