more dynamics

Hi Trevor,

thank you for creating progressbar, it is almost exactly what I needed. I adapted it slightly to allow more dynamic information:

 * allow updating of label to give dynamic information
 * adapt to terminal width if support by terminal
 * only update every 50ms
 * building shared library, fixed clang warnings

Perhaps some of this you will find useful?

Cheers,
                Johannes