fix uim build issues.
Split stuff into subpackages, so that you don't need to have gtk if you don't need it.