s3-includes: only include system/terminal.h when needed.