End contition of several for loops changed to avoid compiler warnings.
Merge branch 'master' of https://github.com/andreasdr/tdmecpp