Fix build warnings.

Change-Id: Id481ca2eb5b5982c74c3186b889e976dc8ed3f0e
Reviewed-on: http://gerrit.dmdirc.com/2666
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager