Fixes Go issue 3921 for gccgo. From Shenghou Ma. From-SVN: r190282
runtime: support NumCPU() on more platforms Added support for Solaris, Irix, *BSD (including Darwin). Still missing support for RTEMS. Fixes issue 3698 in Go issue tracker. From-SVN: r190197