missing includes in as_terminal.hpp