One more attempt at Windows/Linux portability

Fix the "wrong turn in the initial position" bug; fix a bug in
material_value.c; one more attempt to reach Windows/Linux portability
for Firenzina 2.3 xTreme.