Fix all warnings from -Wall in gcc 4.6.3.