First attempt at autoconf for FreeBSD/Linux compat.