Output LUA print statements to cout and capture them in our console