Fix linking when dri3 and present are enabled.