Improves CPack support

Improves the original CPack integration. Also, adds a new script to
generate source code releases.