let XB_FIND_SONAME define *_FILENAME also for apple
[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