Fix build

Hi,

i tried to compile is_KeyFinder and needed to update several things to make it work with the KeyFinder in current git.
I also needed to fix some cast issues with qt / gcc and linux linker / ifdef related issues.