add -Werror; some code improvements contrib. by VY
Authored by: lilyco 2010-10-12
Parent: [r538]
Child: [r540]