Compile fix for Solaris