[make] fix bug with EXTERNAL_DEFINES