A bunch of work on adding threads to cs520 prog5

I fixed a ton of errors, a lot of them having to do with inline assembly
weirdness, but it still doesn't work. I have some work to do in order to
get this working, I suppose that's what I get for doing threads myself