Support compilation on Solaris