snprintf build fix on macos.