Set the nativeDefer function to setImmediate if available