Actually I think 4a527c99 fixes at least the iterate issue.
Building against 3.12 throws some more error messages, a log is here: http://devel.recluse.de/~bzed/.publish/2014-01-08-JgfKxGlqJX4/make.log...