Detect OS X better.

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