fix gninx-gridfs error using --with-cc-opt=-Wno-error