fix compile with node v0.11.x