[53] Build for Solaris

Adds the necessary code splits for GNU make and SunOS -l flags into
the CMakeLists.

Changes the pragma rules for SunOS g++ (which do not support pop)

Also adds some minor include file preprocessor branches with __sun
tests.
fix error message so that it is reachable and matches other checks in kernel driver
Merge pull request #85 from kristopolous/53-build-for-solaris

[53] Build for Solaris
Merge pull request #84 from teancom/master

fix error message so that it is reachable