[server] Fix API compatibility with Node 0.10