Corrected Makefile and added optimization flags.