minor fix for bug 9520:
- socket configuration attempts to determine if system supports ipv6
- checks app configuration, but configuration throws exception if called from embedded context
- solution is to put a try/catch guard and fall to an alternative test for ipv6
Improve detecting if a handle is a console on Windows.

Use GetConsoleMode. If it succeeds (returns non-zero) then the handle is a
console. If it fails (returns zero) then the handle is not a console.

The old check, (GetFileType (handle) == FILE_TYPE_CHAR) assumes that a handle
of type FILE_TYPE_CHAR is a console. This falsely reports a handle directed to
NUL as a console.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=12752
Lazy initialization of type parameters expanded interfaces. Fixes #13324
Schedule internal delay task on default scheduler only. Fixes #13318
Fixes failing tests
Fix indexer member formating
Generate the push/pop LMF code as IR on architectures which support it. Currently only used on amd64.
Rework the x86 lmf code to use stores instead of pushes, and to be more consistent with the code on other platforms.
libgc: Use GCC atomics on ARM.

This is to ensure that if the runtime is compiled for e.g.
ARM v4 or v5, it will use the correct atomics on v6 and v7.
Merge pull request #707 from LHCGreg/12752-windows_nul_isredirected

Improve detecting if a handle is a console on Windows.
mono-mutex.c: Don't include sys/time.h on Windows;

Signed-off-by: Alex Rønne Petersen <alexrp@xamarin.com>
Added mono-mutex.h & c to libmonoutils.vcxproj

Signed-off-by: Alex Rønne Petersen <alexrp@xamarin.com>
Fix a "mixed decls and code" warning.
fixes ctaggart/mono#2 cpuid() now compiles in VS 2012
Merge pull request #600 from tr8dr/master

Fix for bug 9250 (critical bug for embedded mono)
Handle property with default values. Fix part of #13336.
Get rid of the MONO_ARCH_ENABLE_LMF_IR define added by 0938c69a52654e02bbb8f0c2107183404516dec6, use flags in MonoCompile instead.
Fix a problem in emit_pop_lmf (), it no longer needs to change the current bblock.
Generate the push/pop LMF code as IR on x86.