adding _VARIADIC_MAX and fixing a couple of include problems for VS