py2.6 & py3.3 build fixes