Updated demo1 to compile, link and even run (before crashing) on Windows (it also crashes on Mac)