Add ifdefs for solaris