Bugfix for compilation on windows, fixes #245