increase warning level in msvc to w4 and wx and fix remaining warnings