mmcount: make work under v8