Cross-platform nextTick() implementation added