switch_to() is only used from #ifdef HAS_USL_VTS code, place it inside ifdefs to to avoid unused static warning and compile error on systems without VT_ACTIVATE and VT_WAITACTIVE defines.