PsychIncludes-Windows: Make inclusion of wglew.h conditional on Screen()

No need to include it unless we' re building the Screen mex file.
Remove redundant definition and use of ubyte data-type.

Replace its few uses with psych_uint8, which is the same, but portable
and trouble-free.
-> Allows compile of WaitSecs.mexw32 on Win-7 build system against
Win-7 SDK.
Add build script for Windows 32-Bit builds on Win-7 on twisty.

First iteration: Only WaitSecs.mexw32 build tested so far.
Remove obsolete MacOS9 and Octave-2 support, and bits of Matlab R11 support.

Delete defines and includes and workarounds for those obsolete
platforms.
Kill more compatibility cruft for Matlab R11.

mxLogical is properly defined on all platforms.
Various missing defines are available on R2007a+
Cleanup of some defines.
MSVC does not know __func__, but it does know __FUNCTION__ so use it.
Bits of more windows PsychConstants.h cleanup.

Just restructured, no real change. EXP still needs to be defined to
nothing, snprintf still needs to be defined to _snprintf on VC 2010.
Use -largeArrayDims even on 32-Bit Matlab builds on Windows.

Omits mex warnings, does not hurt.
PsychConstants: Remove redundant GL_xxx defines.

They are all covered by our glew.h includes, no need to keep them.
Remove Matlab pre-R2007a support from moalcore, moglcore, Eyelink build.

Remove the various workaround needed to build on the R11 Win2000 build
system.
Also remove corresponding makefiles or make support.
From core, remove workaround for pre R2006b Matlabs without mwSize data
type. We now require mwSize and mwIndex to be defined, as on R2007a+
and Octave3+
Remove all support code for Matlab pre R2007a and Windows 2000 build system.

Remove all workarounds and special-cases for R11 builds from core code
on Windows.
Enable PsychPortAudio build on twisty - Win7

Add portaudio_x86.lib import library to PsychSourceGL/Cohorts/PortAudio
and include path to library link path.
Bringup GetSecs and WaitSecs on new build system.
Bringup IOPort and PsychKinectCore on new Win-7 build system.

Add library path to Windows kinect library, specifically to the libusb
bundled with it.
PsychKinectCore compiles, but couldn't get tested yet.
.gitignore the Cohorts/Kinect-v16-withsource/ subfolder.

We don't version control it yet, as it contains unmodified code.
ImagingStereoDemo: Work around flaws of VirtualBox Windows-7 VM.

Win-7 when running under VirtualBox with the experimental WDDM display
drivers suffers a bug where OpenGL does not allow double-buffered
access (that's a guess, no point in finding the root cause). Anyway, it
leads to Screen('AddFrameToMovie') aborting if 'backBuffer' is selected
as read buffer, presumably because we only allow this if the OpenGL
context is double-buffered and the VM reports the context as
single-buffered. Either it is only single-buffered, or the reporting of
OpenGL is buggy. In any case, use the slightly suboptimal 'frontBuffer'
as read buffer, so testing of Movie writing can be done within the
Win-7 VM.

Additionally, add the 'VideoQuality=0.5' codec setting to enforce use
of 50% quality level for video encoding. Screen's default of 0.1 aka
10% leads to shoddy results on Win-7, as it is optimized for live video
recording, not movie writing.
Bringup PsychHID on new 32-Bit Win-7 build system.

The Windows-7 platform SDK includes the standard DirectInput header
files, as well as dinput8.lib (which implements DirectInput-8), but
does not include the dinput.lib and dxguid.lib import libraries.
dinput.lib is omitted, because it exposes DirectInput-7 functionality,
which is apparently deprecated since 2007 and now declared dead by
Microsoft. dxguid.lib is no longer needed, because its purpose of
defining DirectX GUID's is now instead implemented by a different
method, as described in the comments inside
Source/Windows/PsychHIDStandardInterfaces.h.

Adapt makefile to add library path for libusb-1.0 windows edition and
omit dinput.lib and dxguid.lib. Also some compiler warning cleanup.

Microsoft considers the whole DirectInput tech obsolete and recommends
use of DXInput -- which is useless for us as it only supports XBox-360
game controllers, and use of RAWInput API's, which would be
problematic, as it would require us to run our own event loop on a
separate thread on a hidden fullscreen window, causing even more
complications with Windows-7 foreground window activation and other
Vista+ mess. As far as i can see the pain and trouble would outweight
the almost non-existent benefits -- handling of multiple separate mice
and keyboards if we'd get very lucky. For the time being, we stick to
DirectInput-8 as long as we can.
Disable WINVER defines for Windows build and some others.

When building against a Windows platform SDK or MSVC compiler on WinXP
or later, WINVER and _WIN32_WINNT is already #defined to >= 0x500, so
no need for us to #define it to 0x500. This omits some compiler
warnings about macro redefinitions on Win-7. Similarly no need to
define INT64_MAX on MSVC 2005 or later -- here tested with MSVC 2010.

As long as our build-system is not pre-historic, we should no longer
need these. Disable them, but don't remove them. We may want to
ocassionally enable them during a test-compile to make sure we don't
accidentally break WinXP compatibility by using Windows Vista+ only
API's.

PsychHID rebuild for testing - no more compiler warnings :-).
Screen: Disable use of Apple Quicktime on MS-Window.

The master-switch in PsychConstants.h (PSYCHQTAVAIL setup code) now
disables use of Apple Quicktime technology not only on all 64-Bit
systems and on Linux as before, but also on MS-Windows.

Add missing defines for now undefined data types if Quicktime SDK
header files aren't included on Windows build. Add some other
conditional compiles and fixes to make compile not fail if QT isn't
used and compiled/linked in.

Change defaults for use of Videoplayback, Videocapture/recording and
Moviewriting engines to GStreamer, except for 32-Bit OSX where it
remains QT for now.

-> Screen compiles, but doesn't link yet on the new 32-Bit Matlab +
Win-7 build system, due to missing ddraw.lib.
Update parseptblog.php for OSX-10.8, Win-8, 64-Bit runtimes.

Add parsing and display code for installation stats of:
Upcoming MS Windows-8, upcoming OSX-10.8 Mountain Lion, 64-Bit PTB OSX,
upcomding 64-Bit PTB Windows, legacy PTB 3.0.9
Improve display of installation stats for Octave.
Some other minor improvements.
Windows: Add WINDOWS_LEAN_AND_MEAN define to includes.

Supposed to cut down compile time, didn't see a significant
effect, but shouldn't hurt.