fix MainWindow
replace '+=' with '='
enable tools compilation