Guess inventory slot chosen at "[foo or ?*]" prompt

Added utility function to guess the chosen inventory slot from a prompt
Used in book-nameturn, emptywand-name, wand-name
fix missing include
Merge pull request #6 from ohle/upstream

Guess inventory slot chosen at "[foo or ?*]" prompt