updates to libquat

mostly that it actually works now... I think. someone test please.