fixed compilation problems on windows