std::uint32_t changed to uint32_t, other compile errors fixed