build: default to egl and fallback to shm if not found