Solaris fixes for std.stdio and std.parallelism

- Use GENERIC_IO
- Use sysconf to determine number of CPUs