Fixed warnings produced by gcc 4.7.2.