Apparently, I have solved the problem. I say apparently meaning that at least it compiles and installs smoothly. In file ranf.c (Packages/RNG/Src/ranf.c) insert at the beginning #include <time.h> and comment line 153 in the original file, where function 'gettomeofday' is re-defined. Cheers, Stefano