Better management of the optional dependency from nrmllib, so that the doctests work