fix node 0.10 compatibility

node 0.10 changed the definition of the after callback slightly that causes compiler errors