fix node 0.10 compat problem with setTimeout