Include frame.h before termhooks.h.