Test on Ubuntu Quantal and fix some issues