Added -threaded to compilation flags.

Default foreign function interface call mode is safe, thus the change does not need to change source code.
Merge branch 'master' of github.com:SKA-ScienceDataProcessor/RC