fixed MSC warnings, updated build script