Fix global scope resolution after typedef