Updates to lrxlib with ref count support.