Fixed main to make windows linker happy