Various fixes an cleanups.

See the commit descriptions for more details.

If you don't want to merge, at least apply the [string_head vs utf8_info change in cdrv.h](https://github.com/quarnster/go-qt5/commit/0e78b3da8f004936d22cfa73726c4877fdbd10e0#diff-2) which can cause crashes.