Fix some warnings

These are all compiler warnings I got while installing on 24.2
One or two would actually lead to errors.