Fix issue where setImmediate is node >=0.10