Fixed errors arising from compiling PhysicsTools