Allow to use Mongoid < 5.0 in gemspec