linux-support + 64bit fixes

Here's my linux support + 64bit fixes branch, which is based on top of the llvm-build branch (which is not yet merged). This is just for testing the build bot, or studying the build/run errors that happen on linux. Not for merging.