I compiled this version on WinXP and MingW 4.1.1 and got an error at locations where abs() is called. The compiler complains about having two definitions for abs():
int64 abs(int64) in Defs.h
int abs(int) in stdlib.h
I simply casted the arguments to int64, but do you also get this error with MingW 3.x version?