lib: un-break msvc
tools: fix more warnings
tools: x64 fixes for msvc
tools: tell msvc to disable deprecation warnings