Fix build, make recurseCopy simpler