Fixed #4636 (Fails to compile using mxe *-to-windows cross compiler)