Fixes compile errors using node v0.10.x