replace PRIu64 with %d and cast to int
Merge branch 'master' into debian
update changelog