Port of S. Traykov's patch for Nethack.

Add the following categories for selection:

You'll need to add the following definitions to your include/config.h file:
#define ITEMCAT to enable the I and r categories (unidentified, rustprone)
#define ITEMCAT_JP to enable the P category (items just...)
#define ITEMCAT_AP to enable the Q category (auto-picked)
#define ITEMCAT_NEG to enable the Z category (inverse selection)
#define ITEMCAT_OLDSTYLE if you don't like the 5.0-style 'I' category selection.
Additionally, add the line OPTIONS=like_swimming in your nethack configuration file, if you'd like the 'r' category to appear by default.