Support FreeBSD and Solaris on i386 and x86_64.