Switch remaining main() functions and copyrite.c to C++.