Fix Python 3.4 build errors