Fix variable keylength on 64 bit env