Make plugin compatible with nodejs 0.4.x