Fix build with WL_HIDE_DEPRECATED