Fix a swathe of compiler warnings

Fixes a mixture of mostly harmless warnings in the QextSerialPort and
log4qt libraries.
Minor fixes that clang warns about

Clang complains about different things to gcc; MacOS defaults to
clang.
Merge pull request #65 from chrisy/feature/fix-warnings

Fix a bunch of compiler warnings (from Chris)