create_prior_xptr function

Create an external pointer to a C++ prior