Code Cleanup: use strict flags for math lib, add inline declarations
Correction to fix of T37688

rB68d39a262c90 didn't check correct file for doing
versioning code. It shall check userprefs.blend not
startup.blend.
Forgot to theme-ify color of shadow UVs (color used to draw uvs during
image painting)
Removed unused Freestyle env_map images.
Appease grumpy ole gcc 4.7 of MinGW64 (possibly gcc 4.6 of MinGW32 too?)
that cannot convert float to char without false warnings that are turned
into errors with strict flags. I expect that any real conversion
warnings can be caught on linux.
Fix T37710: Missing bounds check for active UI list item could crash.
Rectangle API: add single axis intersection check
BMesh Py API: add bmesh.geometry.intersect_face_point()

patch originally by mont29 with some edits.
Alpha channel of a plane track image works fine in MCE now
OSX/scons: Introduce a new env var 'MACOSX_COMPILER'
This is needed to resolve the real used compiler from the compatibility shim’S or symlinks.
Also set the real CCVERSION as scons CCVERSION would only read the default one, which
is not useful for OSX
Cycles / OSL Templates: Add Simplex and Gabor noise templates and remove ones which are available as regular nodes.
Fix T37722 - Can't undo deleting a screen layout

Operations on screen and UI stuff is not actually saved in the undo
files/buffers. Therefore, these shouldn't have the flags set for
getting included for undo and in the last operator settings.
Compiler warnings: quiet warnings for gcc4.7x
patch from Sergey
Util Macros: reduce multiple access & conversion for CLAMP/CLAMPIS/ABS
Code Cleanup: pass rectangles as const in insterface files