updated to run with clang and libc++ and opencv

CAREFUL!!!!
 HAD TO comment out a function in: random.cpp
  // __gnu_cxx::random_sample(GRSDummyIterator(a), GRSDummyIterator(b),
		// 	   sample.begin(), sample.end());