Makes app run on windows after much pain and agony.