fix cmake building ResourceEditor for mac