fix cpp-btree crash on MacOS