Fix a variety of syntax errors seen on PE 3.2