Fix header dependencies in makefile

The DEPS variable assignments in the make_library and make_tests user-
defined functions needed to lazily call add_deps since the object list
referenced by add_deps isn't available during the initial expansion but
during the subsequent eval call made by the caller.