Fix macro redefinition error on Solaris