Compile with MSVC 2012
- fixes for MSVC 2012
- standard C fixes
- add proper flags for windows
- fix winsock include issue
- fix max
- update min windows version to vista
- fix get special folder path
- fix include path
- fix linkage
- add required windows lib to link to qtwallet