Fix windows-specific integer problems in progress bar