Add media-libs/mesa and x11-base/xorg-server packages.