AFAIK exitcode 309 means that your program can't find all dynamic libraries it wants to link to.

Did you copy SDL.dll in your Bin folder?