Change uint32_t from long to int. How did I miss that?
Introduce IO abstraction layer - RwOps (inspired by SDL library).