Thank you for the patch. In the absence of anyone with knowledge of cross-compilation having come forward I've gone ahead and applied this in commit 27329181e3 since it at least improves the WinCE build without breaking the Windows build.