Add a building script and Makefile for building stand-alone version