Take a look at openssl compile parameters and make sure that it compiles in 64 bit mode. Also you can try to disable assembler optimization in openssl. Aleksey