dist.mak: protect make dist on empty PREFIX and DLLEXT, revamp PHONY