Fix compilation without memory manager.

configure example: ./configure --enable-manager=no
Merge pull request #406 from 4144/memmamanger

Fix compilation without memory manager.
Split functions pc_equipitem and pc_unequipitem.
update HPM hooks.