Merge "Fix the build error and runtime coredump in Windows backend" into devel/master