Added Makefile and fixed compile errors in ParticleUpdate