Fixed issues running on real Windows.