These additions to Program.cs will need #if WINDOWS around them.