Compile cleanly with -O and -DNDEBUG
Merge pull request #97 from cgjones/opt-clean

Compile cleanly with -O and -DNDEBUG