Proposed patches for MinGW build of phoneME