Compile fixes (perhaps just for my version of Qt/GCC).