Compile fix for the MongoDB example.