Fixed ares-enabled builds with static makefiles.