Modify UNIX makefile to detect x86-64 and mips

Not tested!