Fix a swathe of compiler warnings

Fixes a mixture of mostly harmless warnings in the QextSerialPort and
log4qt libraries.