Fix compilation errors & warnings (-Wall) with gcc 4.7.3 and clang 3.3