Add support for ActiveRecord 4.x

Cherry-picked (outside git) changes from https://github.com/jashmenn/activeuuid/pull/37 onto local fork to allow AR 4.x support.