Implemented rvmGetThreadByThreadId() in thread.c.
vm/build.sh will now fail if make fails for a build.