Win export, fixed windows stuff