Fixed error when building examples with STATICLINK=1
Line endings
linefeeds...
fixed some build issues
Fixed invalig preprocessors
Fixed the use of UNIX_TOOLS if present
Line ends
Fixed reading of $(SystemRoot) and $(SYSTEMROOT)
Added missing directories
Made the it build in msvc