Openness, Government Size and the Terms of Trade