fixed compile error

Hello, Thanks for pdf-tools, Its really nice.

This commit was needed for me to compile the code. Please review and merge.

PS: this commit made by @tsu-nera, I don't know about merit/demerit of this fix.