add curl to common.cpp