build fix: use arch safe uint32_t instead of unsigned long