Add protection against mixed mpi/standalone linkage, clean up pimpl in s...

...kv_client_t