Fix compilation warnings

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Boost performance of Progress Dialog if the command line output is long

To test, commit 10000 files

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>