-Fix (#178): radar scan double-counted some units and missed others
Merge pull request #178 from wangds/fixradarscan

-Fix (#178): radar scan double-counted some units and missed others
-Cleanup: remove useless code
-Codechange: merge menu/intro loop into main loop
-Fix (#170): [WIN32] move MPU_Interrupt to its own thread
-Add: generic threading functions
-Codechange: generalise thread usage for MPU_Interrupt
-Cleanup: move cutscene code out of opendune.c
-Codechange: rename s_canSkipIntro to g_canSkipIntro
-Codechange: rename Memory_ClearBlock to GFX_ClearBlock
-Fix: add cutscene.h to source.list and update project files
Merge pull request #179 from wangds/cutscene

-Cleanup: move cutscene code out of opendune.c
-Fix (#101): some MIDI notes failed to send a note off command

Errors introduced in commit 9f94af2855e26acb94885542347289dcd290ed03:
- MPU_NoteOn: duration decrement was lost.
- MPU_Interrupt: noteOnDuration can be negative, and inequality is wrong.
-Fix (7a5ba8d0d39b4cc03392247c20b3814acdd9e491): don't restart the music if it didn't change
Merge pull request #186 from wangds/fix101b

-Fix (#101): some MIDI notes failed to send a note off command
Look for both lowercase and UPPERCASE filenames

This allow to use uppercase original files in data/
on systems with case sensitive file systems
Merge pull request #188 from miniupnp/master

Try to open files with uppercase name after trying lowercase
-Fix: Windows is being Windows; hopefully this fixes it
-Codechange: file access using data-dir from config (patch by samsve)
-Fix: Windows 32bit is stdcall, Windows 64bit is cdecl, Linux is cdecl .. handle all cases correctly