Add needed headers

Also remove group/other write access to PID file
Merge remote-tracking branch 'origin/slurm-2.6'