Removing mongoclient from linked libraries