Fix logging in windows (I hope)