Treat warnings as errors

Fixes #3.