purple: make it compile against 2.8.x API