windows (cross-compile) build fixes