Oddly, if I compile the wine tree without -O2, the following test fails:
../../../wine advpack_test.exe.so advpack.c advpack.c:441: Test failed: Expected C:\Program Files, got C:\ advpack.c:443: Test failed: Expected size 17, got 4 make: *** [advpack.ok] Error 2
Compiling advpack/advpack.c with at least -O makes the problem go away.