-Fix compilation errors under Solaris