add setImmediate/clearImmediate to globals; closes #1435