make it build successfully on Solaris 11 also
Merge pull request #31 from alessandro/master

make it build successfully on Solaris 11 also