fixed compilation under windows