add support for compiling on 32bit architectures.
if using on 32bit machines, the expiry being set wasnt valid