fix Fedora build and packing by Huaren Zhong <huaren.zhong@gmail.com>