Add #ifdefs needed to compile Gallium on Solaris with gcc or Sun cc