mongodb: using CXX instead of CC for linking