Modified some files to help compilation on amd64 systems. The code compiles to 32-bit executables/objects.