add --native option to kpm pack

kpm pack --native would crossgen all dependencies in the output
Also move this static function to the bottom of the file.