Windows: write program dump in case of memory alloc failure
Engine: fixed widescreen border not working in all cases