Move some functions to compat

Move doPlayerAddItem, doPlayerRemoveItem and doContainerAddItem to compat