Fixed compilation warning messages on gcc 4.5
Fixed some compilation warning messages with Clang.
Fixed compilation warning messages with INTEL compiler.
Finished removing compiler warnings.