Fix syntax errors in order to compile in visual studio