move timespec2 constructor to types