[Finally] fixed the undefined reference to WinMain error for Windows