Fixed most of the remaining QSTools violations

These fixes resolve most of the remaining issues found by the QSTools checker. 

An un-squashed branch is available here: https://github.com/paulrobinson/fuse/tree/qs_tools-fixes. In that branch there is a single commit for each type of QSTools violation that I have fixed. It's probably easier to review that branch.