let XB_FIND_SONAME define *_FILENAME also for apple
[configure] properly detect if curl was compiled statically with openssl
Merge pull request #5048 from wsnipex/ssl-fix

[configure] properly detect if curl was compiled statically with openssl
[pvr] fix wrong index range conditions for selected item
[pvr] cleanup: removes unneeded cast to int