Library build 2

* rework of makefiles, 2nd try
  * merge filelist.mk + api/filelist.mk
  * list of sources split to common sources, library-specific and daemon-specific
  * general cleanup
  * .cpp depends on it's .h
  * USE_* variables for AESNI and static build
  * 'dist' target: fast creation of last tagged revision
* cmake: the same changes as in plain makeiles

known bugs: static binary don't fails to link, some strange error