[mac] fixed compiling plugins