MAID-322: Added -pthread compiler flag for Unix builds.