merged recent quda-0.7 branch.