WIP: Fix main to work in windows compiler