Fixed compilation for Windows