Fix build with SunStudio compiler under Solaris.
Fix build under Solaris, in particular with the SunStudio compiler.