This unbreaks the SDL port build.
And adapt all the code that uses it.
This library is meant to provide C++-style wrappers over lower level APIs such as syscalls and pthread_* functions, as well as utilities for easily running pieces of logic on different threads.