Fix to allow compliation on 32 bit machines