Update Makefile to link libcares

This was breaking the library builds