Add -Wformat and and fix some compile warnings with gcc 4.3. Fixes bug #537129 (Cosim...