These two includes are missing from /usr/include/tdb.h
(the bug is against TDB library, not CTDB, just couldn't find the right product/component, sorry)
This should have been filed against samba proper. Though it seems to be fixed in the meantime, so maybe it should just be closed now?
Finally closing this as fixed.