fixes compiler warnings

* converts some `int` to `ssize_t`
* adds `const` to `title()` and `subtitle()`