tree: fix header for potential multiple inclusions