Added type.h for portability

When changing architectures type.h could easily be modified.
Merge branch 'type.h'