update for VS2013 build
various type fixes
revise windows directions