The problem here is that glut.h creates a new exit() function, which has to override the one in stdlib.h (included by Windows.h). The solution is to put the Windows.h include before the glut.h one.
The problem is also addressed on Stack Overflow here: http://stackoverflow.com/questions/14402/glut-exit-redefinition-error