fix macos size_t == ulong but win size_t == u long long bug