Copied and adapted ALLOCATOR from px4_nxbuilder/SKYETWO