Separate binary and library building in Makefile