Added VERR_STATE
Use == instead of <= when comparing a size_t
Don't write zero-length data
Always define verr_print_stacktrace