build: fix Solaris headers check.