You can find the code to compile here:
https://github.com/M-itch/libcod (my fork of libcod)
It works the same way as libcod, it needs to be preloaded. Normal players still have their guids, because my patch doesn't do anything to those players. For cracked players: they will have guid 0, but it is possible they will have a pb guid.
(Note: you do not need to modify your binary for the join timeout, but it is useful to have when the master server is down )