Rename struct keydat to struct keydat_t for C++.