Put in a way to set the ostype before the winforms winow is created.