Improve FreeBSD support

Include the patches listed in:
http://svnweb.freebsd.org/ports/head/sysutils/consolekit/files/
Credit goes to the FreeBSD team for this work.