Merge pull request #4673 from Orphis/cmake_checklib cmake: Only use include directories on actual paths in check_lib