Force boost spirit to be thread-safe

It appears that in order for parsers based on boost spirit to be
thread-safe one has to set specific CPP defines. This change sets
those defines (based on how parts of boost which use spirit set
it to be thread-safe).