std::rt: Add start_on_main_thread function

Applications that need to use the GUI can override start and set up the runtime using
this function.