Fix compiler warnings.

Change-Id: I41a2be71d099a4bfcfe20cea34cb83f3ac183e04
Reviewed-on: http://gerrit.dmdirc.com/3573
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager