update Makefile to use ansi spec and optimization flags