mongodb: build shared lib