Fix compilation error on solaris