Compile on Solaris 11 (Solaris 11 zone on SmartOS)
Clean up Solaris 11 fixes, use GNU preprocessor definitions when
available.
Merge pull request #27 from ccrusius/solaris11

Compile on Solaris 11 (Solaris 11 zone on SmartOS)