MinGW fixes for PromiseResult returns