Fix bug: compile error caused by lack of header file.

update files:
tree/layout.c
tree/hdr.c