Can customize installation folder easily
Protect concurrent calls to pthread_create