improve build on Linux

Improvements for Unix builds:
* add missing libraries cairo and pango-1.0
* add shared library soname
* optionally build static library
* make -fPIC optionally (enabled by default)
* make paths overridable