Fix a bunch of compiler warnings

Fixes a bunch of mildly irritating compiler warnings in some of the libraries (log4js, QextSerialPort) with GCC on Windows and Linux, and Clang on MacOS.