Fix MingW build

Change-Id: Id6025838e274305266f0f90eda2ddbb48355d792