made main.c more modular
simplify CMakeLists.txt, out of source builds are now possible
add most important files for packaging
set compability level
improved .deb build script
Merge build changes into master