Allow repairing from the control panel

Based on TortoiseSVN rev. 25940.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Remove unneded includes to version.h

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