Follow-up to rBcc1372546ad5: Fix for segmentation fault in pipeline (freestyle/wm related).

Render->freestyle_bmain is set to NULL after BKE_main_free() so that
the struct Main is not considered for tagging any longer.
Fix T40912: Collision Callbacks Don't Work if Set Directly
Correct version check for tip color
Fix T40923: An error from a python controller on a LibFreed object causes a crash
Slight cleanup for 4af848e.
Fix T39825: Crash on startup with tablet
Make Cursor placement operation a modal operator.

* Allows drag and place workflow in addition to click workflow
* Should be compatible with future use of calling operator and placing
instead of left-clicking
Code Cleanup - Replaced magic numbers with defines
Select Grouped -> KeyingSet for bones also shows error messages now when the Keying Set is inappropriate
cloth: Speed up collision detection

Noticed this while looking into something else.
The change is trivial, but gives a rather nice preformance improvement,
so why not.
Theres's actually a lot one can do to improve collision performance if
one wanted to, the triangle-triangle check alone has a lot of room for
improvement.
Bugfix T40945: Typo in tooltip for SSS property
Fix for a wrong threads count shown in Freestyle debug mode (--debug-freestyle).
Fix T40941: Bevel factor in Text

Bevel factor is not supported by text, hide it from the interface.
Fix the ABIFLAGS order for detecting Python debug builds

D631 by mva
Fix T40843: Cycles does not support viewport render override
Install_deps: Final (hopefully!) fix for dual clang/cfe name (*sigh*).

Patch by simonrepp (Simon Repp), thanks!
Add (r)partition funcs to BLI_string, to get left-most/right-most first occurence of delimiters.

Inspired by Python (r)partition str functions. Also added some Gtest cases for those new funcs.

Reviewed by Campbell Barton, many thanks!
Refactor of Node's 'Select by type' op, to also handle color and name handling.

Ne op is similar to other 'Select Grouped' ones in Blender.

Based on patch D288 by Cruentus_Nex (Steve).

Reviewed by Campbell Barton, thanks!

Revision: D288.
OSX: Jpeg2000 was formely handled by quicktime, after QT removal it was forgotten to move it to openjpeg, doing this now
Note: In releases this was missing since 2.69, so we may want an ‘a’ release for 2.71
Style cleanup