WIN32 multiple window support & convention fix

A glorious goto was used