media-libs/mesa: prepare setup for DRI3 migration and sync with upstream

Signed-off-by: David Heidelberger <david.heidelberger@ixit.cz>