Made C89 compliant for Visual Studio; added CMake test project on Windows.