Windows port: fix build errors in testshade/testrender.
Fix broken exit() function