Don't forget to flush.
Merge pull request #434 from Orvid/master

[Building/Gui] Don't forget to flush output buffers from executed programs.