Fixed problem with globally used variable nblock and multiple warning messages.

First problem was reported by http://forum.openstreetmap.org/viewtopic.php?pid=369861#p369861