BUGFIX #2133

- fixes #2133 (@fourplusone)
- general.c is now ansi-c compatible
- ssh.c did also not compile on VS2012
- compilation fixes on VS2012( cmakelists msvc conditianal changes, some minor code fixes due to reported msvc compiler warnings )