make it compile on v0.11 and v0.10, and older...

Segfaults on v0.11.x still though..