Allow system calls to restart if interrupted

System calls can be interrupted by the signal handler
that progressbar installs. We need them to restart.

Fixes TOOLS-334

I've submitted a fix for this [upstream](https://code.google.com/p/python-progressbar/issues/detail?id=30) so this is really a temporary fix.