configure: add --enable-mesa

* add -DMESA_EGL_NO_X11_HEADERS to C*FLAGS when mesa support is not explicitly enabled

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>