Use c99 standard bool when available
fixed wrong comparison operator

As mentioned by Martin, i now fixed the comparison to be
logically corret.
Merge pull request #37 from fmorgner/master

Use c99 standard bool when available