Fix various dependencies.

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