Define a raw DLL main which is called by the C runtime if we're statically linked into a DLL --- fix for issue #2199