Add compat option for compatibility with Mongoose <3.6