added a TF_BUILD_MONGODB macro.
removed a debug print.