Drop console from win32 window

Need to use WinMain to remove console.
This commit may fail build due to not testing on unix cmake.