Little fixes for Ruby 1.9 and platforms other than mac

BTW: It still doesn't work for x86_64, we need a new NASM manual and 64 bit register definitions. The calling convention and stack layout should also be considered. I think https://github.com/miura1729/ytljit can be a better replacement.