Compiler voodoo

after compiling it few times more, stopped working

Why would you need to compile working code "a few more times"? You must have pissed the code off doing that, and now it is getting its revenge.