added 2dtoolkit ignores to gitignore, and changed up some code for platforms