Make nix build gcc and nix on Illumos  (tested in SmartOS zone)

Apart from purely fixing builds on Illumos, a few packages were updated along the way.