Support <link.h> in FreeBSD9 and Linux