some functions to compat

moved 2 functions to compat.lua
* getSpectators
* doRelocate
an "ItemType" value is always valid, no need to check if it exists.