python lxml: Hacks and build fixes