Makefile: move the check for Brew/Macport to ./configure