Set the ident-osabi field properly for FreeBSD and Linux.
Export symbols for executables as well.
Add FreeBSD support.
Merge pull request #728 from rmn64k/freebsd

FreeBSD support for Red