s3: only include tdb headers where needed.