Move output_mode into termbox_common to fix cross-compilation errors