Tune cmake defines for poll to work on Solaris. #3813