add optimization flags to main makefile