Backport some fixes
Update to latest debian, backport fixes
misc fixes
Update to latest centos