Updates to gui for win32

Changes to gui to allow executable on win 32. Fixes #57.