Fix diagnostic warnings
Address #65 (closed). Many of the warnings were caused by the QT code itself which we have no control over. I silenced those by modifying the Makefiles. However those makefiles will anyways be removed when !27 (merged) is merged. Fixed the remaining warnings that were in the diagnostic code.