autodetect arch in makefile