I load the pthread library in my program using `dlopen`, and fetch handlers to `pthread_create` and `pthread_join` using `dlsym`.

How can I ensure that both the handlers are of a compatible version? I do not care if the symbols are of new version or old versions. I just want that whatever `pthread_create` I use to work well with the `pthread_join` that I get.

I know there is a `dlvsym` to which I can pass explicit version number, but I do not care about exact version numbers as I want my code to be independent of library versions.