Fix Node.js 0.8 compatibility