Fix the actions.c code to compile under Visual Studio.