Updated for 10.8 and higher compatibility (requires codesigning, cert installation and some mach_star updates).