Look for __res_query if res_query is not found

Hi pasis,

I hope you'll accept my pull requests, as libstrophe looks quite dead to me. I'm going to push some out to you in the next few minutes. Here is the first, which fixes building for me on Fedora 16. 

Seems like current libresolv has a layer of indirection here. 

regards,
Jonas