Compile fixes, integration of fast PRNG.