Add handling to rebuild command-line tools, and copy needed NDLLs