minor bugfixes and removal of USE=hal, thus blocks bug 313389.
works on amd64
Seems to build and install OK on SPARC, not able to test in-depth but seems OK. Could stabilise.
The remaining stabilization is going to take place in 364973.
Stabilization completed in bug 364973.