[build] avoid deprecated function warning in debug
[build] avoid deprecated function warning in debug

Not using this everywhere because it must be used when functions are used,
not when then are declared.

OCL-dev/ocl-icd,OCL-dev/ocl-icd,OCL-dev/ocl-icd