exclude solaris section on other platforms
Merge pull request #1798 from MatthewCattell/fix-build-issue-other-platforms

exclude solaris section on other platforms