add missing std includes
s/NULL/0/ in non-pointer context
Merge pull request #1 from ebfe/compiles_on_linux

Compiles on linux
Merge pull request #2 from ebfe/fix-warnings

Fix warnings
Add .gitignore.
Compiles on OS X

Specify void/int as return values from functions.
Forward declarations added.
Misc compiler errors corrected.
Change status to compiling.
Make helper programs compile under Linux
Merge branch 'master' of github.com:ebfe/cbw

* 'master' of github.com:ebfe/cbw:
  s/NULL/0/ in non-pointer context
  add missing std includes