Added a patch to fix linker errors on x86_64.
A few 64 bit fixes.