Adapt the autotools names to different versions of FreeBSD