libm/bsdsrc/b_log.c: don't include errno.h
libm/src/math_private.h: define FLT_EVAL_METHOD
libm/compat: code that should in libm but actually in FreeBSD libc
include: add headers required by libm.

Mostly from their FreeBSD counterpart.