Added VS specific files
Added VS "no return" attributes to log*error functions
Wrapped for loops in curly braces to get compiling on VS
Header changes to make the code compile on VS
Added curly braces and int constructor