Clean up Makefile

More portable Makefile. Split out PBI specific build vars into a separate file.
Tell git to ignore some stuff.