fixed compilation issues when flag -Werror=format-security is enabled
switched examples to cmake
generates static and shared libraries
Merge branch 'upstream'
Initial release
Merge branch 'debian'