Add explicit casts to external C function to make example compile with stricter compiler flags.
Merge pull request #162 from maltelenz/castfix

Add explicit casts to external C function