Rails 4 compatibility

This allows higher versions of the mail gem, which is required for use with rails 4.