Fixed demo1 compilation on Windows