fix in-tree compilation for headers