Work around AESendMessage bug in OS X 10.8.2

This is done by using typeKernelProcessID instead of typeApplSignature
for each call to AEBuildAppleEvent() and manually looking up the PID.
Fixed possible exception when iTunes is quit during event execution