[packaging] add debug packages and copyright, use lto