Update configure.ac

Add Define MONGODB for conditional compiling.