add -ldl and -pthread for linux
add -ldl and pthread for linux