Changes to use the newer API of libqv. Namely changes to use IntMatrix::set_matrix rather than IntMatrix::set