fix forward declaration issues with RNG class