fixing makefile for x-plat