RNG: Improve build automation for different RNG implementations