Fix Mongoid builds