Fix assumption that pointers fits in a 'long'