Recognize FreeBSD and adjust LDFLAGS/CPPFLAGS to cope with