Improve iconv finding for cmake

* add FindIconv helper for CMake iconv detection
* only default using iconv to ON for MacOS
* update pkg-config generation to include iconv dependency better
Merge pull request #1978 from libgit2/rb/cmake-find-iconv

Improve iconv finding for cmake