[packaging] add debug package, copyright and use lto