Added bt/foundation/compat.h and bt/foundation/detect.h.
Added bt_allocator_t.