fix VS compilation error and update project files