Added optimization building in general Makefile with arch auto-detection