Makefile: flags optimization