Fixed compiling issues on Windows (yes, randomly?)