some functions to compat

moved 2 functions to compat.lua
* getSpectators
* doRelocate
This function is expected to return nil if the spectator list is empty.