 +static int g_argc;
 +static const char** g_argn;
 +static const char** g_argv;
++static const char* g_tty_prefix;
 +static pthread_t g_sdl_thread;
 +
 +static void* sdl_thread_start(void*);

 	if ( CPU_haveCPUID() ) {
diff --git a/src/main/nacl/pepper_instance.c b/src/main/nacl/pepper_instance.c
new file mode 100644
index 0000000..7d4c5c6
--- /dev/null
+++ b/src/main/nacl/pepper_instance.c
@@ -0,0 +1,277 @@
+/*
+ * Copyright (c) 2011 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be

+#include <ppapi/c/pp_rect.h>
+
+#include "nacl_io/nacl_io.h"
+#include "nacl_io/ioctl.h"
+#include "nacl_io/log.h"
+
+static PP_Instance g_instance;
+static PPB_GetInterface g_get_browser_interface;
+static struct PPB_Messaging_1_0* g_messaging_interface;
+static struct PPB_Var_1_1* g_var_interface;
+static struct PPB_InputEvent_1_0* g_input_event_interface;
+static struct PPB_View_1_1* g_view_interface;
+static int g_width = 0;
