I would try compiling that client with "-rdynamic" on the commandline. I would also try a dynamically linked client to see if it has the same issue (no dlopen etc...).

>> the header mongoquery.hpp...