Removed CMake thread facility selection, it just links to the proper library now, replaced typedefs to basic types with typedefs to fixed width types.