fix build on v0.10.x

I don't think this is the most *proper* fix but at least the unit tests
are passing so I think it's mostly working as expected...

Closes #32.