Some amd64 fixes for variable types (int -> NSUInteger) and a few typos