Get rid of some more deprecated function calls

Also some small GUI fixes. More to come.
This removes the feature to change the gui contrast. That stuff was
totally not portable.