Fix compiler warnings.

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