Correct copy-paste error affecting RDom of 3 and 4 dimensions.
Merge pull request #72 from lenhamey/bugfix130510

Correct copy-paste error affecting RDom of 3 and 4 dimensions.
NaCl tweaks and an example app.

Changed the code to be less ifdeffy.
Changed the build to work on linux.
Made an example app that works on linux. (mac needs testing).
Updated install instructions in general.
HelloNaCl Makefile fix
HelloNaCl Makefile fix (really this time)
Fixed HelloNacl Makefile for os x somewhat. App still doesn't work on os x though
Added some explanatory text to hello_nacl
Added more explanation to the NaCl demo.
Moved the dirty flags to the end of buffer_t

32-bit compilers might insert padding after them, which throws
off codegen. This was preventing 32-bit nacl from working.
Added 32-bit version of HelloNaCl
Reordered buffer_t components to be in strictly decreasing size

This dodges some nasty struct packing bugs when different tools disagree.
native client demo works on os x (and has configurable thread pool size)
Made the nacl demo interactive.
Updated nacl demo with C comparison
Better codegen for strided store on x86
Added a check in ptx runtime for bad device pointers
Wasn't initializing dev pointer in BufferContents constructor
Reduced logging level of some ptx stuff
Made more tests work with gpu

On-device allocation is next major todo
Turned on freeing device allocations