Updates dependencies and fixes tests on nodejs 0.8.x