Fix sys.types and sys.stat for Linux X32.

With this, hello world and several other simple examples now work on X32.

Currently running the testsuite to find any other cases...