Avoid the use of "register" keyword in XkbTranslateKeySym.
This causes issues when compiling code for C++17. While here, make function prototype match the header with regards to removal of another register keyword.
Let me know if you are interested in the removal of additional "register" keywords from public headers.