Refactoring build process, move package installation to postinstall scripts