modified Makefile to use -O2 optimization