add DragonFly support

I'd appreciate it if you could merge this in, as it's pretty much all that is needed to support DragonFly as well!

Thanks,
Alex