Fixed crosscompilation #define issues in RNG.