Provide implementation of embb_core_count_available() for FreeBSD, fix malloc.h include