Minimalistic multi-threading for C