Allow building on Windows

Tested the 64-bit compilation, and it's quite complicated, but it works!

Version: 1.alpha.14.07

Signed-off-by: GreatEmerald <pastas4@gmail.com>