darwin: remove legacy codes
darwin: use lzma for debian package