fix up p1c building - re-worked p1c makefile