[PATCH 1/2] build: put dependency libraries in the right place in Makefiles