Fixes some Makefile tasks