add explicit size_t cast to gen-ext-hhvm

This fixes the OSX build.