Merging r59941 through r60011 from trunk into soc-2013-depsgraph_mt
Merging r60012 through r60068 from trunk into soc-2013-depsgraph_mt
scons + mingw Compile Fixes for r.59942

* SCons files for guardedalloc module requires all the source files to be listed out, like in CMake.

* mingw32 (or at least gcc 4.6.2) seems to follow the Windows convention of using _msize() instead of having a "malloc_usable_size()"
Another windows compile fix for r.59942

Moved var declarations for unicode args array to start of main().

The fix used in the original commit won't work since the args
defined in that block won't be available for later steps.
However, they must be defined before the block of code used
to initialise the mem allocators
Second attempt at fixing windows + guardedalloc issues in main()

Although previous fix compiled, it would crash on startup, since
the guardedalloc changes need to read from the args passed in.
Now use plain malloc for allocating the offending array, so that
we can grab the args before they're needed.
Mark some CCG funcrions as inlined

This seems to be giving speedup up to 10%
and in fact perhaps the change need to go
to the trunk.
Merging r60069 through r60105 from trunk into soc-2013-depsgraph_mt
Simplify code around detailed analysis in scene.c
Merging r60106 through r60197 from trunk into soc-2013-depsgraph_mt
Merging r60198 through r60467 from trunk into soc-2013-depsgraph_mt
Merging r60468 through r60470 from trunk into soc-2013-depsgraph_mt
Merging r60471 through r60846 from trunk into soc-2013-depsgraph_mt
Make evaluatio ncontext a part of render strcture

That's how it's supposed to be actually.
Avoid spawning local evaluation contexts

Instead of creating local one, make sure either context
from Render or G.main is used.
Merging r60847 through r60853 from trunk into soc-2013-depsgraph_mt
Merging r60854 through r60868 from trunk into soc-2013-depsgraph_mt