Fix 'Compile error on Fedora 26'
CMake build system used some outdated variables which has been replaced by cmake build in variables to fix the issue.
FIXED-IN:4.8.1 BUG:383351