Fix bugs 22 and 23. Updated version.

I've started to prove that version against clang's address sanitizer. There are still bugs in TBCaret code, for example you can take a look at this part of the code:

https://github.com/fruxo/turbobadger/blob/master/src/tb/tb_style_edit.cpp#L500-L502

It easily ends up being in -1, but I'll work on that in upcoming patches I guess.