Export all useful cpu functions
Add ifs around TUI function not available in emscripten
Export all useful functions in emscripten
Fix mishap
Fix mishap in CMakeLists causing main.c not to be compiled