Updated CMake for Octave to check more intelligently for libc++