add -Wno-error=warn_unused_result when building the mongo plugin

 * libmongoc doesn't check the return of an fwrite and Red Hat's libc
   is compiled to warn if this is the case