Fixed all errors unrelated to VS integration with R#9