some functions to compat

moved 2 functions to compat.lua
* getSpectators
* doRelocate
Like this?
```lua
return #result > 0 and result or nil
```