Workaround libearth 0.3.0 incompatibility