trying conditionally adding library dependencies in makefile