cppcheck: fix C-style casting
Merge pull request #18 from rdcastro/xpdf-fixes

cppcheck: fix C-style casting.