Modify Makefile for interoperability with embedded