Fixed a leak in mainstreet() as well as some other misc stuff, still dont know if windows binary will work