Makefile: make .so correctly list dependencies