There is now a simple working C driver making use of DynamicDistMatrix.