Compilation fix for Solaris