[#1547] added build script including packaging support