some functions to compat

moved 2 functions to compat.lua
* getSpectators
* doRelocate