add setImmediate and clearImmediate globals

should fix the `gm` problems with the travis tests