Software Quality as a Foundation for Security