Fix optimized Makefile bug