Fix building the common libcli/samsync code