Library for cross-platform C threads functions