Minor cleanups

Remove files that shouldn't be under version control, remove an unnecessary and unused function (and whole file), simplify the mktargets excludes (remove excludes of files that don't exist) and simplify an ifdef.