Updated Makefile for xplatform