This patch contains some utility functions that some Image processing kernels will require.
As there is a function initRandomImage which makes rand() function call, I have added glibc_compat_rand so that the random number generated is same across different machines.
Note: glibc_compat_rand.cpp is same as in "MultiSource/Benchmarks/DOE-ProxyApps-C/miniAMR/glibc_compat_rand.c"