Add rpython cache dir to .gitignore
Add some additional headers required for compilation with emcc
Fix debug_nonnull_ptr for emscripten platform.

Emscripten will quite happily use small pointers that fall outside
the default range check, so it requires a much smaller limit.