fix snprintf on windows within lua bindings.