Compilation fixes for node v0.10.0.