Win32-related fixes (VS 2013 compiler)

"or" replaced by "||", _Readsome_s call removed, swap generic parameter
removed. All done by conditional compilation flags