Fix compatibility issue with NodeJS 0.8.