Replace malloc.h by stdlib.h for providing malloc
Provide embb_core_count_available() implementation for FreeBSD
  (this probably works on MacOS too, but not tested yet)

While on it, fix error message. The missing include file
is not the root cause of the problem. The missing implementation
of embb_core_count_available() is.