use autotools as build system

* reduce build efforts for qt-less systems (e.g. weston only)
* remove Imagination headers and find them in (build)environment
* add pkgconfigs

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>