remove common.{c, h}
use -pthread instead of -lpthread