Fix compilation on Solaris

Resolves https://github.com/matplotlib/matplotlib/pull/1839#issuecomment-20440075