Version 3.7: fix c++ head/source file switch can't use .cc file bug.