behaviortreecpp: fix build (#15938)