Win32 threads: remove functions forbidden on Windows Store

Do not create a suspended thread so ResumeThread becomes unnecessary.
Busy loop over thread handle if by misfortune the thread ends before
_beginthreadex has returned.

Do not use SetThreadPriority on Windows Store.

Set the cancelled thread bit outside of the APC procedure.
APC is still used to wake up the cancelled thread when it is in an alertable state
(SleepEx or WaitForMultipleObjectsEx).
Since QueueUserAPC is forbidden on Windows Store we check the cancelled state every
50 ms.
avcodec: missed AV_NOPTS_VALUE check
Add HEVC support in MKV
Temporarily fix build until a better way is found
GLSpectrum: fix memory leak (cid #1100858)
Fix use of unitialized value
Lua: Fix memory leak (cid #1100856)
avi: remove dead code (cid #1100855)
Cosmetics (and help static analyzers)
zip: fix memory leak (cid #1062581)
avcodec: release block on flushing if we are not using it