Fixes for type.h (by Ivan Mahonin)
One more fix from Ivan Mahonin
Migrated to Fedora 20 MinGW toolchain