Makefile flag optimizations