Wrap the Engine and Window pointers into hidden ruby cvars.

That way we can access them in ruby function calls.