changed from -lpthread to -pthread
fix for example config