Sun Solaris/OpenIndian build fixes