fix cross-compile windows build
fix test-harness for 32-bit platforms