The new API doesn't perfectly match the old one, so while this is being investigated, at least fix building.