sample program crashes on Windows.

It seems that the main function is declared as extern (C).