Fix some warnings

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