Added distribution packages
Refactored build system