build: move koIDiff into it's own file

(integrated from trunk branch change dc3ab6f by Todd Whiteman <toddw@activestate.com>)
build: move koIDiff into it's own file (finish)