Fix Makefile to avoid rebuilding executable unnecessarily.