Use correct CMake cross compiling indicator

Replace use of "CROSS_COMPILING" with "CMAKE_CROSS_COMPILING"
to detect whether project is being cross compiled.