Updates dependencies and fixes tests for nodejs 0.8.x