Fix build on MinGW32
Add progress bar