Refactoring and cleaning of code to reduce compiler warnings
The source code contains a lot of compiler warnings. While they do not cause problems or build failures right now, a refactoring and cleaning of the the project code should be done to remove as many as possible. This should be done before development of new functionality, to allow the detection of possible important new warnings during development and futureproof against bugs caused by coalescence of small issues.