Don't support long command-line options, for OS X compatibility.
Change --defaults-file to --defaults-extra-file.
Support Percona Server options in 5.6.
Trap ERR and QUIT in addition to other signals.