Solaris fixes for std.stdio and std.parallelism

- Use GENERIC_IO
- Use sysconf to determine number of CPUs
Merge pull request #2758 from redstar/solaris

Solaris fixes for std.stdio and std.parallelism