[SDL] Fixed a stack corruption issue on win32

Fixes issue reported at http://www.opentk.com/node/3659