Kjetilly rhel fixing

This fixes further build related issue with Tinia on RHEL 6, and changes the find script to a Cmake-config script.