libsrtp ships in many distros without being compiled with the -fPIC flag for 64-bit machines. The upstream Makefile/configure scripts don't ever add the -fPIC option and only ship the static library. I have notified upstream, but even if they fix it we need to check for the problem in older versions. This patch attempts to detect problems linking libsrtp in a shared library.