Updated compilation

Loops now do something useful, and an '=' in a condition is now
(finally?) a '=='. Also, warningfixing.