MINGW: use main() to start execution