Fixed some issues with XPC Services' main.m, and updated XPC Services template file to fix launch daemon plist template