Make module executable. Fix a bunch of gui related items.