Add build and clean scripts
Fix compiler warning about __BIG_ENDIAN
Fix various const-ness problems
Properly detect failure to open logs. Avoid trying to write on failure.
Fix format string bugs in the examples
Do not remove dalvikhook/jni/libs (is this needed?)
Cast return values to void pointers
Merge pull request #6 from jduck/master

Quite a few fixes rolled up into one PR