Conditionally include bson_ext for mongoid build.
Since bson_ext is technically optional, only use it for non JRuby builds... as C extensions don't build on JRuby.