ctdb-build: Fix handling of public headers