compile libmongoc with -fPIC so we can statically link
fix up some mongo flags and autoreconf