Add TARGET_FREEBSD

It can still be made cleaner in that case. Set the lib path in config and use it everywhere. Duplicating lines seems weird to me.