Fix build with 0.10

This is still compatible with older versions.