Enable warnings_as_errors

Treat compiler warnings as errors and fix current warnings.
Merge pull request #284 from basho/rz/warnings-as-errors

Enable warnings_as_errors