[#2135] update external Makefile for macosx build