RandomSystem: Unified the two RandomSystem classes. This fixes compilation problems with the latest precompiler. Also fixes some typos in the NT code, and adds some error handling to the UNIX code.