fix warnings, check for cunit
Merge pull request #1 from leite/master

fix warnings, check for CUnit