nine: buildsystem improvements, convert to static/shared drivers

...and as any other target (according to configure.ac) default to
static one. Why - the shared pipe-drivers bare unstable API/ABI and
can cause additional problems.

Lots to small changes all over with most significant ones:
 - Sort and cleanup the includes
 - Use AM_CPPFLAGS for the defines
 - Add the linker garbage collector
 - Restrict the exported symbols (think llvm)