Add more C++ extensions, and ignore Mercurial directory.