Use `target_compile_definitions` to fix the quoting. This is particularly
important when running under a non-sh shell (e.g. Windows) where the quoting
rules are different.
The code goes into its own sub-tree under 'tools' but tests go under 'test',
so that running 'check-swift' will also run all the SourceKit tests.
SourceKit is disabled on non-darwin platforms.