add 64 bit build support

as the title says, amd64 builds fine here