Move fixed-width integer type definitions out of arch/types.h to types.h

To correct types for these can determined based on CONFIG_{32,64}BIT,
so move them away from arch/types.h as having them there results in
code duplication between architectures.

On same time some libraries was been updated