Check the right element in isBook

This makes sure we read the right array element, corresponding
to all other array accesses in the same function, and all other
use of the isBook array elsewhere in the library.

This makes the fix in the previous commit ("Avoid too big changes
in isScale") work as intended, fixing other samples that triggered
assertions.
Include dependency libs (-lm) in the pkg-config file
Bump the version number, add a changelog entry