Remove spaces after -D
remove space after -I
Zero is false.  found by cppcheck
Check limit on 'i' before dereferencing it
Don't conflict with enum
Use "handshake_finished" instead of "finished"

To avoid polluting the global namespace with an enum
Add rules for cppcheck

$ CPPCHECK=yes make

will produce more warnings.  For now, we suppress variable scope
complaints.