make it build successfully on Solaris 11 also

Flavio, I had trouble building QJson in a Solaris 11 Environment. I'm requesting you to merge my commits although I don't know which branch you want this fix to go to.