Changed size_type to int in device_vector.
Removed all the compiler warnings resulting due to this change.