check errors from fread
unpack: fix issue with reading one entry too much

num_entries is the number of entries, the sentinel should not be included here or it will read one to many entries. The sentinel should only be used when allocating the memory and resetting it.
unpack: fix leaks
unpack: add datapack_version
create changelog
adding pkg-config support