nine/dri3: build fix & code fix

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