some functions to compat

moved 2 functions to compat.lua
* getSpectators
* doRelocate
It should start from getThingCount() - 1.