changed output file name for test-medium-2.xml and set optimization flags in Makefile