Move the more init/cleanup into functions called by libdynd_init