Fix dist building script

* Updated building scripts for Ubuntu, Windows, and Mac OS
* Slightly changed SettingsDialog to make it look better on Mac OS.