Try static linking for general mongo compilation