Merged pull request. Gui works only on Linux.