guard against undefined globals, setImmediate
Merge pull request #1 from substack/setimmediate-undef

guard against undefined globals, export setImmediate