Replace all long with (u)int*_t for systems with sizeof(long) > 4