Maurizio, your are right, the variable declaration on the windows only section was missing. This function was not yet tested on windows.... one of the dangers of working with unlreased code -g
the arguments have to be flipped. I've compiled the code and made several more changes to improve windows compatibility (e.g. range operations were broken under windows - probably since many years)