Adding build system and fixing some Clang errors.

For easier use of the library I have created a simple build system using Waf (Python tool). For my own fork I am also using [Travis CI](https://travis-ci.org/DoomHammer/jsonhandle) for Continuous Integration.

I think that both may be incorporated in upstream version.