Avoid calling sem_post on a uninitialized semaphore during thread attach, it works under linux, but fails under *bsd. Fixes #647248.
[Fix] Ensure that exceptions are propagated when embedding

* metadata/object.c:
* mini/mini.c:
Ensure that exceptions get propagated back to the caller
when mono is being embedded.
License: MIT/X11
Define HOST_WIN32 in configure.in on 2.6 too to make it easier the backporting of patches.
[Fix] Turn off exception callback filtering on WoW64.

* mini/exceptions-x86.c: Turn off exception callback filtering on WoW64. This allows managed exceptions to actually work when using 32bit mono on 64bit Windows.

License: MIT/X11
Don't disconnect an unconnected socket. Fixes #606809.

* Mono.Debugger.Soft/VirtualMachineManager.cs: Don't disconnect an unconnected socket. Fixes #606809.

This patch is licensed MIT/X11.
[Fix] Ensure correct stack pointer initialization on !POSIX

* metadata/threads.c: Ensure correct stack pointer initialization on !POSIX.
This fixes some random crashes with embedded, release-optimized binaries on windows.

License: MIT/X11
Avoid caching stuff in socket-io.c in static variables, since the socket assembly can be unloaded, cache them in MonoDomain instead.
Replace EnumProcesses with OpenProcess

	namedmutex_prewait was (partially) listing the running processes and
	then searching through them. Now we use OpenProcess to verify the owner
	of the mutex is still alive.

	Fixes bug #648133
Fix the collision handling code

	After the fix for bug #605092, inserting timers with an equal due time
	was failing because searching in the list was also using a reference
	comparison. Now, when adding a new timer, we search using just the due
	time.
	Fixes bug #648130.
FromBinary does not need ToLocalTime

	When converting to DateTime from a long, we don't need ToLocalTime().
	Setting the kind to Local is enough.
	Patch from Mig.

	Fixes bug #648252.
Emit GenericEqualityComparer<T> instances for each EqualityComparer<T> instance in AOT, the former is created dynamically by the latter.
Implement memory barriers for amd64/x86. Fixes #648831.
Disable catchpoints when the DISABLE_BREAKPOINTS flag is used during an invoke. Fixes #632224.
Disable inlining if the assembly has a DebuggableAttribute with the IsJITOptimizerDisabled flag set. Fixes #604486.
Avoid killing the thread if socket already null

	In some weird cases socket is null when we try to close it.
Renaming a dangling symlink works now

	Ditto.

	Fixes bug #650779.
Revert wrong fix for #648252
Fix encoding of large strings in the soft debugger api. Fixes #648832.
Fix gshared support in the soft debugger. Fixes #651251.
Fix more gshared problems in the soft debugger.