Fix compile errors on on node 0.10