use gcc -pthread