fixed issues reported by cppcheck
added derived file
typos
fixed 1.2 upgrade under 32 bits