Windows threading + makefiles

This pull requests adds
- multithreading on Windows
- basic Makefiles for Visual Studio
- fixes when compiling with Visual Studio without support for variadic macros