Add Ruby 1.8.7 compatibility
Fit expiry into 32 bits.