(reVC) Fix build errors related to MinGW #1263

Open
alextwothousand wants to merge 8 commits from alextwothousand/miami into miami